CREATE TABLE [dbo].[TCRENO_CLIN]
(
[CO_EMPR] [dbo].[TD_VC_002] NOT NULL,
[CO_CLIE] [dbo].[TD_VC_020] NOT NULL,
[NU_RENO] [dbo].[TD_VC_008] NOT NULL,
[CO_UNID_CONC] [dbo].[TD_VC_003] NOT NULL,
[FE_RENO] [dbo].[TD_DT_001] NOT NULL,
[NU_PROC] [dbo].[TD_IN_001] NOT NULL CONSTRAINT [DF__TCRENO_CL__NU_PR__6F7F8B4B] DEFAULT ((0)),
[CO_USUA_CREA] [dbo].[TD_VC_008_USUA] NOT NULL CONSTRAINT [DF__TCRENO_CL__CO_US__7073AF84] DEFAULT (suser_sname()),
[FE_USUA_CREA] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TCRENO_CL__FE_US__7167D3BD] DEFAULT (getdate()),
[CO_USUA_MODI] [dbo].[TD_VC_008_USUA] NOT NULL CONSTRAINT [DF__TCRENO_CL__CO_US__725BF7F6] DEFAULT (suser_sname()),
[FE_USUA_MODI] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TCRENO_CL__FE_US__73501C2F] DEFAULT (getdate())
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TCRENO_CLIN] ADD CONSTRAINT [PK__TCRENO_C__A28198164B5804C5] PRIMARY KEY CLUSTERED  ([CO_EMPR], [CO_CLIE], [NU_RENO], [CO_UNID_CONC], [FE_RENO], [NU_PROC]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TCRENO_CLIN] ADD CONSTRAINT [FK__TCRENO_CLIN__1A6AB4A7] FOREIGN KEY ([CO_EMPR], [CO_UNID_CONC], [CO_CLIE], [NU_RENO], [FE_RENO]) REFERENCES [dbo].[TCRENO_CLIE] ([CO_EMPR], [CO_UNID_CONC], [CO_CLIE], [NU_RENO], [FE_RENO])
GO
